package heima3_2.cn.osc.model.re_interface;

import heima3_2.cn.osc.model.bean.AttentionBean;
import heima3_2.cn.osc.model.bean.CallMeBean;
import heima3_2.cn.osc.model.bean.CollectBean;
import heima3_2.cn.osc.model.bean.DynamicFragmentBean.TweetCommentList;
import heima3_2.cn.osc.model.bean.DynamicFragmentBean.TweetDetail;
import heima3_2.cn.osc.model.bean.DynamicFragmentBean.TweetsList;
import heima3_2.cn.osc.model.bean.ExploreEventBean;
import heima3_2.cn.osc.model.bean.ExploreFriendBean;
import heima3_2.cn.osc.model.bean.GeneralBlogBean;
import heima3_2.cn.osc.model.bean.GeneralBlogDetailBean;
import heima3_2.cn.osc.model.bean.GeneralNewsBean;
import heima3_2.cn.osc.model.bean.GeneralNewsDetailBean;
import heima3_2.cn.osc.model.bean.MoveDetailBean;
import heima3_2.cn.osc.model.bean.LoginBean;
import heima3_2.cn.osc.model.bean.MessagesBean;
import heima3_2.cn.osc.model.bean.MoveMyBean;
import heima3_2.cn.osc.model.bean.ShakeBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;

/** * Created by yaozhanlie on 2017/1/14.
 */

public interface RetrofitInterface {

    @GET("news_list")
    Call<GeneralNewsBean> getInfo(@Query("pageIndex") int pageIndex, @Query("catalog") int catalog, @Query("pageSize")
            int pageSize);

    @GET("news_list")
    Call<GeneralNewsBean> getRecommendInfo(@Query("pageIndex") int pageIndex, @Query("catalog") int catalog, @Query("show")
                                           String show, @Query("pageSize") int pageSize);

    @GET("blog_list")
    Call<GeneralBlogBean> getDetailInfo(@Query("pageIndex") int pageIndex, @Query("pageSize") int pageSize, @Query("type")
            String type);
    @GET("blog_list")
    Call<GeneralBlogBean> getBlogList(@Query("pageIndex") int pageIndex, @Query("pageSize") int pageSize, @Query("type")
            String type);


    @GET("tweet_list")
    Call<TweetsList> getTweetInfo(@Query("uid") int uid, @Query("pageIndex") int pageIndex, @Query("pageSize") int pageSize);

    @GET("tweet_detail")
    Call<TweetDetail> getTweetDetailInfo(@Query("id") int id);

    @GET("comment_list")
    Call<TweetCommentList> getTweetCommentList(@Query("pageIndex") int pageIndex, @Query("catalog") int catalog, @Query("pageSize") int pageSize, @Query("id") int id);

    @GET("http://192.168.1.100:8080/oschina/list/active_list1/page0.xml")
    Call<ExploreFriendBean> getExploreFriendInfo();

    @GET("event_list")
    Call<ExploreEventBean> getExploreEventInfo(@Query("uid") int uid,@Query("pageIndex") int pageIndex,@Query("pageSize") int pageSize);

    @GET("http://10.0.2.2:8080/oschina/list/event_list/page0.xml")
    Call<ExploreEventBean> getExploreEventInfo();


    @GET("http://10.0.2.2:8080/oschina/list/my_event_list/page0.xml")
    Call<MoveMyBean> getMoveEventInfo();
    @GET("http://192.168.113.101:8080/oschina/list/favorite_list1/page0.xml")
    Call<CollectBean> getCollectInfo();
    //综合详情
    @GET("news_detail")
    Call<GeneralNewsDetailBean> getConsult(@Query("id") int id);
    @GET("blog_detail")
    Call<GeneralBlogDetailBean> getBlogger(@Query("id") int id);
    @GET("post_detail")
    Call<MoveDetailBean> getRecent(@Query("id") int id);
    Call<CollectBean> getCollectInfo1();

    @GET("http://192.168.113.101:8080/oschina/list/favorite_list2/page0.xml")
    Call<CollectBean> getCollectInfo2();

    @GET("http://192.168.113.101:8080/oschina/list/favorite_list5/page0.xml")
    Call<CollectBean> getCollectInfo3();

    @GET("http://192.168.113.101:8080/oschina/list/favorite_list3/page0.xml")
    Call<CollectBean> getCollectInfo4();

    @GET("http://192.168.113.101:8080/oschina/list/favorite_list4/page0.xml")
    Call<CollectBean> getCollectInfo5();

    @GET("http://192.168.113.101:8080/oschina/list/friends_list1/page0.xml")
    Call<AttentionBean> getAttentionInfo();

    @GET("http://192.168.113.101:8080/oschina/list/friends_list0/page0.xml")
    Call<AttentionBean> getFansInfo();

    @GET("http://www.oschina.net/action/api/login_validate")
    Call<LoginBean> login(@Query("username") String username, @Query("pwd") String pwd, @Query("keep_login") int keep_login);

    @Headers("Cookie:oscid=E%2BAb6AbSL5WFFb4L5J15uVNmAR8EsONdtdUhHtq0526PbB1rurabPGrSQfFRpyZMyHaANKE0OB77ipnEZQAq3t4fQEBVYGq3ijoINGFSy5Lth9fZHxKenB4eBr4dVR577MkU0nbnEFjrCMvUVOA7Rw%3D%3D; Domain=.oschina.net; Expires=Thu, 18-Jan-2018 09:47:41 GMT; Path=/")
    @GET("http://www.oschina.net/action/api/active_list")
    Call<CallMeBean> getMessageInfo(@Query("uid") int uid, @Query("pageIndex") int pageIndex, @Query("catalog") int catalog, @Query("pageSize") int pageSize);

    @Headers("Cookie:oscid=E%2BAb6AbSL5WFFb4L5J15uVNmAR8EsONdtdUhHtq0526PbB1rurabPGrSQfFRpyZMyHaANKE0OB77ipnEZQAq3t4fQEBVYGq3ijoINGFSy5Lth9fZHxKenB4eBr4dVR577MkU0nbnEFjrCMvUVOA7Rw%3D%3D; Domain=.oschina.net; Expires=Thu, 18-Jan-2018 09:47:41 GMT; Path=/")
    @GET("http://www.oschina.net/action/api/message_list")
    Call<MessagesBean> getLeaveInfo(@Query("uid") int uid, @Query("pageIndex") int pageIndex, @Query("pageSize") int pageSize);

    @Headers("Cookie:oscid=E%2BAb6AbSL5WFFb4L5J15uVNmAR8EsONdtdUhHtq0526PbB1rurabPGrSQfFRpyZMyHaANKE0OB77ipnEZQAq3t4fQEBVYGq3ijoINGFSy5Lth9fZHxKenB4eBr4dVR577MkU0nbnEFjrCMvUVOA7Rw%3D%3D; Domain=.oschina.net; Expires=Thu, 18-Jan-2018 09:47:41 GMT; Path=/")
    @GET("http://www.oschina.net/action/api/friends_list")
    Call<AttentionBean> getFriendsInfo(@Query("uid") int uid, @Query("pageIndex") int pageIndex, @Query("pageSize") int pageSize, @Query("relation") int relation);

    @GET("http://10.0.2.2:8080/oschina/list/my_event_list/page0.xml")
    Call<MoveMyBean> getExerise();


    @GET("rock_rock")
    Call<ShakeBean> getShakeInfo();
}
